/*  
     PlAr is Platform Arena: a 2D multiplayer shooting game
     Copyright (C) 2009 Ragagnin Antonio <spocchio@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package plar.core;

import java.util.HashMap;
import java.util.Map;

public class Parameters {

	HashMap<String, Object> parameters;

	public Parameters() {
		parameters = new HashMap<String, Object>();

	}

	public Parameters(Parameters info) {
		parameters = new HashMap<String, Object>();
		parameters.putAll(info.getHM());
	}

	public Parameters(String s, Object o) {
		parameters = new HashMap<String, Object>();
		parameters.put(s, o);
	}

	public Object get(String s) {
		return parameters.get(s);
	}

	private Map<String, Object> getHM() {
		return parameters;
	}

	public Parameters put(String s, Object o) {
		parameters.put(s, o);
		return this;
	}
}
